home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / CHIP Kasım 1998.iso / DRIVERS / CD-Rom / 220x.exe / AF2.BAT < prev    next >
DOS Batch File  |  1993-01-12  |  2KB  |  116 lines

  1. ECHO OFF
  2. cls
  3. prompt $p$g
  4. if "%1" == "?" goto usage
  5.  
  6. if "%1" == "at" goto inst
  7. if "%1" == "AT" goto inst
  8. if "%1" == "xt" goto inst
  9. if "%1" == "XT" goto inst
  10.  
  11. if "%1" == "2at" goto inst
  12. if "%1" == "2AT" goto inst
  13. if "%1" == "2xt" goto inst
  14. if "%1" == "2XT" goto inst
  15.  
  16. if "%1" == "3at" goto inst
  17. if "%1" == "3AT" goto inst
  18. if "%1" == "3xt" goto inst
  19. if "%1" == "3XT" goto inst
  20.  
  21. if "%1" == "4at" goto inst
  22. if "%1" == "4AT" goto inst
  23. if "%1" == "4xt" goto inst
  24. if "%1" == "4XT" goto inst
  25.  
  26. sel_seq
  27.  
  28. :inst
  29. ECHO OFF
  30. IF EXIST AUTOEXEC.BAT    DEL AUTOEXEC.BAT
  31. IF EXIST CONFIG.SYS    DEL CONFIG.SYS
  32. IF EXIST *.NEW        DEL *.NEW
  33.  
  34. cls
  35. ECHO\
  36. ECHO NOTICE: If the DOS version is 5.0, MS-DOS Extensions is ignored
  37. ECHO         as Incorrect DOS version.
  38.  
  39. ECHO\
  40. ECHO Two files will be copied from the boot disk to Library disk if exist.
  41. ECHO Then the files will be modified.
  42.  
  43. ECHO\
  44. ECHO ON
  45. COPY A:\AUTOEXEC.BAT
  46. COPY A:\CONFIG.SYS
  47.  
  48. ECHO OFF
  49. ECHO\
  50. ECHO AUTOEXEC.BAT and CONFIG.SYS files will be modified.  Wait for a while.
  51. shell3 del_dvr
  52. shell3 del_mscd
  53. ECHO\
  54. ECHO ON
  55. COPY CONFIG.NEW+CONFIG.%1 CONFIG.NEW
  56. ECHO OFF
  57.  
  58. ECHO\
  59.  
  60. shell3 app A:\%2
  61. shell3 m_sys A:\%2
  62.  
  63. :take_b
  64. ECHO OFF
  65. CLS
  66. ECHO If you wish to install the driver to a disk other than the boot
  67. echo disk, remove the boot disk from drive A, then insert the target
  68. ECHO disk into drive A.
  69. echo\
  70. echo\
  71. pause
  72.  
  73. ECHO\
  74. ECHO Some files will be copied from Library disk to the target disk.
  75. ECHO Continue in response to each prompt, then you can install 
  76. ECHO Sony MS-DOS CD-ROM Extensions on the target disk.
  77.  
  78. ECHO\
  79.  
  80. if "%2" == "" goto make_b
  81. ECHO ON
  82. MD A:\%2
  83. echo off
  84.  
  85. :make_b
  86. ECHO ON
  87. COPY AUTOEXEC.BAT+AUTOEXEC.ADD A:\AUTOEXEC.BAT
  88. COPY CONFIG.SYS A:\
  89. COPY SONY_CDU.SYS A:\%2
  90. COPY MSCDEX.EXE A:\%2
  91.  
  92. ECHO OFF
  93. IF EXIST AUTOEXEC.BAT    DEL AUTOEXEC.BAT
  94. IF EXIST CONFIG.SYS    DEL CONFIG.SYS
  95. IF EXIST *.NEW        DEL *.NEW
  96.  
  97. LAST_MSG A %2
  98. goto exit
  99.  
  100. :usage
  101. echo\
  102. echo\
  103. echo     USAGE...
  104. echo\
  105. echo     AF2 XX [Option] and Enter
  106. echo\
  107. echo         XX: Your computer type, AT or XT
  108. echo             Option: Sub Directory
  109. echo\
  110. echo\
  111. echo     AF2 ? and Enter         ; Display this message.
  112.  
  113. echo\
  114. echo\
  115. :exit
  116.